/* Modal Overlay */
.custom-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
}

/* Modal Content */
.custom-modal-content {
  background-color: #fff;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Close Button */
.custom-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: transparent;
  cursor: pointer;
}

/* Modal Layout */
.modal-body {
  display: flex;
  flex-wrap: wrap;
}

.modal-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
}

.modal-image {
  flex: 1 1 50%;
  overflow: hidden;
}

.modal-text {
  flex: 1 1 50%;
  padding: 30px;
  font-family: 'Arial', sans-serif;
}

.modal-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-text p {
  font-size: 16px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-text a {
  display: inline-block;
  margin-top: 15px;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.modal-text a:hover {
  color: #0056b3;
  border-bottom: 2px solid #007bff;
}

.modal-text h3 {
  font-size: 26px;
  margin-bottom: 15px;
  text-align: center;
  color: #007bff; /* Modern blue tone */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Improve image fit and radius */
.modal-image {
  flex: 1 1 50%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
